#!/bin/bash

DIR="$( cd "$( dirname "$0" )" && pwd )"

source $DIR/experiment-variables.sh
source $DIR/env.sh

SSH_OPTS='-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'

ALLNODES="$MAINSERVER $NODES $JMETERCLIENT"

for node in $ALLNODES; do
	echo "Killing java processes from $node"
	ssh $SSH_OPTS -i $SSH_KEY $USER@$node "killall java"
done


